﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BPMN.Domain.Entity.Material
{
    [Table("Products")]
    public class Products : Audit
    {
        /// <summary>
        /// 产品id
        /// </summary>
        [Key]
        public int PId { get; set; }
        /// <summary>
        /// 产品分类
        /// </summary>
        public string PName { get; set; }
        /// <summary>
        /// 父级id
        /// </summary>
        public int PFId { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Psort { get; set; }
        /// <summary>
        /// 是否启用(Products//产品)
        /// </summary>
        public bool PYesNoQiYun { get; set; } = false;
        /// <summary>
        /// 是否是物料/产品
        /// </summary>
        public bool PYesNoEnable { get; set; } = false;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime PDate { get; set; } = DateTime.Now;

    }
}
